package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.ModelAttach;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.sypq.params.FileParams;
import com.jhgsys.internal.sypq.params.ModelAttachAddParams;
import com.jhgsys.internal.sypq.params.WechatFinishParams;
import com.jhgsys.internal.sypq.params.WechatModelParams;
import com.jhgsys.internal.sypq.vo.ProjectVO;
import com.jhgsys.internal.sypq.vo.WechatAttachModelVO;

import java.util.List;

/**
 * 附体 Service接口
 *
 * @author ganjun
 * @date 2024-11-20 17:18:55
 */
public interface IModelAttachService extends IService<ModelAttach> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param request QueryRequest
     * @param modelAttach modelAttach
     * @return IPage<ModelAttach>
     */
    IPage<ModelAttach> findModelAttachPage(QueryRequest request, String demondFinishTime, String name, String statusSearch, String codeSearch);

    /**
     * 导出
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param request QueryRequest
     * @return IPage<ModelAttach>
     */
    List<ModelAttach> export(QueryRequest request, String demondFinishTime, String name, String statusSearch, String codeSearch);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param modelAttach modelAttach
     * @return List<ModelAttach>
     */
    List<ModelAttach> findModelAttachList(ModelAttach modelAttach);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-20 17:18:55
    * @param id
    * @return ModelAttach
    */
    ModelAttach findModelAttachById(String id);


    /**
     * 根据附体id获取船模图纸附件信息
     * @param id
     * @return
     */
    List<FileParams> getModelShipAttachsByAttachId(String id, String fileType);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param ModelAttachAddParams modelAttachAddParams
     */
    void createModelAttach(ModelAttachAddParams params);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param ModelAttachAddParams modelAttachAddParams
     */
    void updateModelAttach(ModelAttachAddParams params);

    /**
     * 完成
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param params
     */
    void finishModelAttach(ModelAttachAddParams params);

    /**
     * 企业微信端完成
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param params
     */
    void finishForWechat(WechatFinishParams params);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-20 17:18:55
     * @param modelAttach modelAttach
     * @param modelAttachIds modelAttachIds
     */
    boolean deleteModelAttach(ModelAttach modelAttach, String modelAttachIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-20 17:18:55
    * @param modelAttachIds modelAttachIds
    */
    boolean physicallyDeleteModelAttach(String modelAttachIds);

    /**
     * 获取项目列表
     * @return
     */
    List<ProjectVO> getProjectList();

    List<WechatAttachModelVO> getAttachModelList(WechatModelParams params);
}
